Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support for the Orange Pi 5 Max with kernel 6.13-rc1 #7537

Closed
wants to merge 2 commits into from

Conversation

shenmintao
Copy link

Description

This PR adds support for the Orange Pi 5 Max with kernel 6.13-rc1 to the armbian/build repository. However, the support is currently incomplete, with the following issues:

USB 3.0 ports are not functional.
HDMI 1 only works at 1080p resolution.
HDMI 2 does not work.
WiFi is not working.
Bluetooth is not working.

Documentation summary for feature / change

Short Description: Initial support for Orange Pi 5 Max with kernel 6.13-rc1.
Summary: This PR introduces initial kernel support for the Orange Pi 5 Max on kernel version 6.13-rc1. Known issues include non-functional USB 3.0 ports, partial HDMI functionality, and non-working WiFi and Bluetooth.
Example of Usage: After applying this patch, users will be able to boot and use the Orange Pi 5 Max with kernel 6.13-rc1, although some hardware features (USB 3.0, HDMI, WiFi, Bluetooth) may not be fully operational.

How Has This Been Tested?

Tested on Orange Pi 5 Max with kernel 6.13-rc1.
Verified that the system boots, but with known issues:
USB 3.0 ports are not functioning.
HDMI 1 works at 1080p only.
HDMI 2 does not work.
WiFi is not working.
Bluetooth is not working.

Checklist:

Please delete options that are not relevant.

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code

@github-actions github-actions bot added size/large PR with 250 lines or more Needs review Seeking for review Hardware Hardware related like kernel, U-Boot, ... Patches Patches related to kernel, U-Boot, ... labels Dec 3, 2024
@shenmintao
Copy link
Author

I am unsure whether this pull request should be submitted as it modifies the configuration for the Orange Pi 5 Max, which might cause it to not work with the vendor kernel. If anyone could help improve this pull request, I would greatly appreciate it.

Copy link
Member

@EvilOlaf EvilOlaf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will break vendor I mostly guess. This shall not happen.
If different settings are necessary for both edge and vendor use functions to set them depending on branch.
If the dts, which now is applied as patch, is complete I suggest to add it directly like these: https://github.com/armbian/build/tree/main/patch/kernel/archive/rockchip64-6.12/dt

Overall it might be worth waiting for general bump of edge to 6.13-rc and then rebase on top if that then

@shenmintao shenmintao closed this Dec 3, 2024
@shenmintao
Copy link
Author

Thank you for your reply. At this stage, since the bcmdhd deb packages generated for 6.12 and 6.13 cannot be installed, it is likely that different settings will be needed. I will close this pull request and wait for the edge to be updated to 6.13-rc1.

@ErikApption
Copy link
Contributor

ErikApption commented Jan 12, 2025

This will break vendor I mostly guess. This shall not happen. If different settings are necessary for both edge and vendor use functions to set them depending on branch. If the dts, which now is applied as patch, is complete I suggest to add it directly like these: https://github.com/armbian/build/tree/main/patch/kernel/archive/rockchip64-6.12/dt

Overall it might be worth waiting for general bump of edge to 6.13-rc and then rebase on top if that then

Vendor for this board is broken - it builds but doesn't work, it is unstable, no PCI, no wifi

@EvilOlaf
Copy link
Member

Vendor for this board is broken - it builds but doesn't work, it is unstable, no PCI, no wifi

Feel free to fix it. This is community supported. Its status is unknown to the core team.
Also this issue tracker is for issues with the build framework, building Armbian to say.

@amazingfate
Copy link
Contributor

I have added some fixes to make bcmdhd build for kernel 6.13: armbian/bcmdhd-dkms#1

@palachzzz
Copy link
Contributor

palachzzz commented Feb 2, 2025

@shenmintao Thank you man! I was able to build 6.13 with your patch, somehow I applied it on current master (there are conflicting patches for Orange Pi 5 Plus), and I was able to get working 6.13 (server build for now), which at least return normally lsmod, unlike "vendor" build of Armbian, and seems no any HW issues, at least it can power on and power off without any stucked processes.

Feel free to fix it. This is community supported. Its status is unknown to the core team.

I think, the point of @ErikApption was it's not a pity to break the vendor build, because it doesn't work normally anyway. At least desktop. Prebuild minimal build somehow able to work and handle bluetooth adapter, I didn't test wifi yet. But prebuld desktop build is fully broken, it is not able to start normally. I was able to build desktop based on Debian, it can start at least. But gdm crashes after some time or some packets installed.

@amazingfate I see it was merged just hour ago, I will go for test it, thanks!

@ErikApption
Copy link
Contributor

I think, the point of @ErikApption was it's not a pity to break the vendor build, because it doesn't work normally anyway. At least desktop. Prebuild minimal build somehow able to work and handle bluetooth adapter, I didn't test wifi yet. But prebuld desktop build is fully broken, it is not able to start normally. I was able to build desktop based on Debian, it can start at least. But gdm crashes after some time or some packets installed.

My vendor build is unstable and crashes after setting up the password. That is server build, not desktop.

Thanks for @amazingfate new driver, the build for 6.13 BUILDS 🎉 but it doesn't boot :-\
Also, the patches on this PR are outdated and do not work with fresh edge build. Also the main patch seems to address orange 5 pi plus but the armbian has a dedicated one for opi 5 max so not sure what is happening.

Anyway, this is what I am running
./compile.sh build BOARD=orangepi5-max BRANCH=edge BUILD_DESKTOP=no BUILD_MINIMAL=no KERNEL_CONFIGURE=no RELEASE=noble

The build never gets a red light so I am worried something is broken in u-boot... is that possible?

@palachzzz
Copy link
Contributor

I was able to build it, will send PR soon, just need a bit more testing.
BTW wifi is not working with new module, the same as it was on "vendor" Armbian build.

@ErikApption
Copy link
Contributor

I was able to build it, will send PR soon, just need a bit more testing. BTW wifi is not working with new module, the same as it was on "vendor" Armbian build.

Noticed there is a patch for wifi for orange pi 5 plus in 6.13 - believe it does patch some dts overlays, pretty sure it is the same wifi as this board.

@shenmintao
Copy link
Author

shenmintao commented Feb 3, 2025 via email

@palachzzz
Copy link
Contributor

@ErikApption try #7783, or just directly from my fork until it is not merged
https://github.com/palachzzz/armbian-build/tree/orangepi5-max-mainline-kernel-support

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Hardware Hardware related like kernel, U-Boot, ... Needs review Seeking for review Patches Patches related to kernel, U-Boot, ... size/large PR with 250 lines or more
Development

Successfully merging this pull request may close these issues.

5 participants